import concroller.FruitController;

import java.io.IOException;
import java.util.Scanner;

public class Cliententry {
    public static void main(String[] args) throws IOException {
        // ManagerController con = new ManagerController();
        FruitController fcon = new FruitController();
        Scanner sc = new Scanner(System.in);
        while (true) {
            System.out.println("=================欢迎来到水果超市管理系统=================");
            System.out.println("请输入您的操作:(1:顾客角色       2:管理员角色       3:退出)");
            String choice = sc.next();
            switch (choice) {
                case "1":
                    fcon.open();
                    break;
                case "2":
                    //通过socket请求
                    fcon.start1();
                    break;
                case "3":
                    System.out.println("拜拜~");
                    System.exit(0);
                default:
                    System.err.println("您输入的选择有误,请重新输入:");
                    break;
            }
        }
    }
}
